package com.lmk;

public class Test04 {
    public static void main(String[] args) {
       int year=2015;
       double student=2000;
       System.out.println("初始人数"+student);
        System.out.println("每年增长1.2倍");
       while (student<=10000){
           student*=1.25;
           year++;
       }

        System.out.println(year+"年人数达到"+student);
    }
}
